$(document).ready(function() {
	getUserSig();
	setBtnClickFuc();
});

function getUserSig() {
	let user = getUserInfo();
	console.log("user.id: ", user.id);
	post("/a02/omsring/genTestUserSig", {
			memberId: user.id
		},
		function(res) {
			console.log("getUserSig res: ", res);
			startVideo(user.id+'', res.data);
		},
		function(e) {
			console.log("e: ", e);
		});
}

function startVideo(userId, sig) {
	const sdkAppId = 1400375385;
	const userSig = sig;
	const roomId = "555888";

	const options = {
		sdkAppId,
		userId,
		userSig,
		roomId
	};
	start(options);
}
